import Datastore from 'nedb'
import path from 'path'
import { remote } from 'electron'
export default {
  create : function (filename){
    return new Datastore({
      autoload: true,
      filename: path.join(remote.app.getPath('userData'), '/' + filename + '.db')
    })
  },

}

